<ix-fieldset [title]="'Transport Options' | translate" [formGroup]="form">
  @if (!isLocal()) {
    <ix-ssh-credentials-select
      formControlName="ssh_credentials"
      [label]="'SSH Connection' | translate"
      [required]="true"
      [tooltip]="helptext.sshCredentialsTooltip | translate"
    ></ix-ssh-credentials-select>
  }
  @if (isNetcat()) {
    <ix-select
      formControlName="netcat_active_side"
      [label]="'Netcat Active Side' | translate"
      [required]="true"
      [options]="netcatActiveSides$"
      [tooltip]="helptext.netcatActiveSideTooltip | translate"
    ></ix-select>
    <ix-input
      formControlName="netcat_active_side_listen_address"
      [label]="'Netcat Active Side Listen Address' | translate"
      [tooltip]="helptext.netcatActiveSideListenAddressTooltip | translate"
    ></ix-input>
    <ix-input
      formControlName="netcat_active_side_port_min"
      type="number"
      [label]="'Netcat Active Side Min Port' | translate"
      [tooltip]="helptext.netcatActiveSidePortMinTooltip | translate"
    ></ix-input>
    <ix-input
      formControlName="netcat_active_side_port_max"
      type="number"
      [label]="'Netcat Active Side Max Port' | translate"
      [tooltip]="helptext.netcatActiveSidePortMaxTooltip | translate"
    ></ix-input>
    <ix-input
      formControlName="netcat_passive_side_connect_address"
      [label]="'Netcat Active Side Connect Address' | translate"
      [tooltip]="helptext.netcatPassiveSideConnectAddressTooltip | translate"
    ></ix-input>
  }
  @if (isSsh()) {
    <ix-select
      formControlName="compression"
      [label]="'Stream Compression' | translate"
      [required]="true"
      [options]="compressions$"
      [tooltip]="helptext.compressionTooltip | translate"
    ></ix-select>
    <ix-input
      formControlName="speed_limit"
      [label]="asTranslatedString(('Limit' | translate) + sizeSuggestion)"
      [format]="formatter.memorySizeFormatting"
      [parse]="formatter.memorySizeParsing"
      [tooltip]="helptext.speedLimitTooltip | translate"
    ></ix-input>
  }
  <ix-checkbox
    formControlName="large_block"
    [label]="'Allow Blocks Larger than 128KB' | translate"
    [tooltip]="helptext.largeBlockTooltip | translate"
  ></ix-checkbox>
  <ix-checkbox
    formControlName="compressed"
    [label]="'Allow Compressed WRITE Records' | translate"
    [tooltip]="helptext.compressedTooltip | translate"
  ></ix-checkbox>
</ix-fieldset>
